package pt.iul.dcti.poo.financemanager.filters;

import pt.iul.dcti.poo.financemanager.accounts.StatementLine;
import pt.iul.dcti.poo.financemanager.date.Date;

public class BeforeDateSelector implements Selector<StatementLine> {

	Date date;

	public BeforeDateSelector(Date date) {
		this.date = date;
	}

	@Override
	public boolean isSelected(StatementLine item) {
		if(item.getDate().before(date))
			return true;
		return false;
	}

}
